package edu.luc.cs.backend;

public class CourseSection {
	private static final String COURSECODE = "C";
	private static int courseCounter = 0;
	private String csid;
	private String courseNumber; //e.g. COMP488
	private String subject;
	private String desc;
	private Employee professor;
	private String term;
	
	public CourseSection(String courseNumber, String subject, String desc, String term) {
		setCourseNumber(courseNumber);
		setSubject(subject);
		setDesc(desc);
		setTerm(term);
		setCsid();
	}
	
	public void setCsid() {
		this.csid = COURSECODE + courseCounter++;
	}
	public String getCsid() {
		return csid;
	}

	public void setCourseNumber(String courseNumber) {
		this.courseNumber = courseNumber;
	}

	public String getCourseNumber() {
		return courseNumber;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getSubject() {
		return subject;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getDesc() {
		return desc;
	}

	public void setProfessor(Employee professor) {
		this.professor = professor;
	}

	public Employee getProfessor() {
		return professor;
	}

	public void setTerm(String term) {
		this.term = term;
	}

	public String getTerm() {
		return term;
	}
	

}
